package com.doyens.reggie;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * 静态资源的处理
 *  1.将他们存储在static目录  http://localhost:8080/front/page/login.html
 *  2.配置静态资源的路径
 *      registry.addResourceHandler("/backend/**").addResourceLocations("classpath:/backend/");
 *      registry.addResourceHandler("/front/**").addResourceLocations("classpath:/front/");
 */
@SpringBootApplication
@MapperScan("com.doyens.reggie.mapper")
@ServletComponentScan
@EnableTransactionManagement
@EnableCaching

public class ReggieApplication {
    public static void main(String[] args) {
        SpringApplication.run(ReggieApplication.class,args);
    }
}
